# coding=utf-8
# https://leetcode.cn/problems/move-zeroes/
from typing import List


class Solution:
    def moveZeroes(self, nums: List[int]) -> None:
        """
        Do not return anything, modify nums in-place instead.
        """
        n = list(filter(lambda x: x != 0, nums))
        n += [0 for i in range(nums.count(0))]
        nums[:] = n
